FIREBALLS - METHODE CLASSIQUE

;--[CMD : COMMANDES]-----------------------------
[Command]
name = "hadoken_x"
command = ~D, DF, F, x

[Command]
name = "hadoken_y"
command = ~D, DF, F, y

[Command]
name = "hadoken_z"
command = ~D, DF, F, z
;------------------------------------------------
;--[CMD : STATES -1]-----------------------------
[State -1]
type = ChangeState
triggerall = command = "hadoken_x"
triggerall = !NumProjID(2000)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = StateNo = [200,470]
trigger2 = MoveContact
value = 2000

[State -1]
type = ChangeState
triggerall = command = "hadoken_y"
triggerall = !NumProjID(2000)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = StateNo = [200,470]
trigger2 = MoveContact
value = 2001

[State -1]
type = ChangeState
triggerall = command = "hadoken_z"
triggerall = !NumProjID(2000)
trigger1 = StateType = S
trigger1 = ctrl
trigger2 = StateNo = [200,470]
trigger2 = MoveContact
value = 2002
;------------------------------------------------
;--[CNS : STATES]--------------------------------
[StateDef 2000] ; Fireball x
type = S
movetype = A
physics = S
ctrl = 0
anim = 2000
velset = 0,0
juggle = 3

[State 2000, Proj]
type = Projectile
trigger1 = AnimElem = 5
; Projectile parameters ---------------
projID = 2000
projanim = 2005
projhitanim = 2006
velocity = 2.5,0
projpriority = 1
offset = 87,-66
; HitDef parameters -------------------
attr = S, SP
hitflag = MAF
guardflag = MA
animtype = Light
damage = 100,10
pausetime = 5,5
sparkno = S700
guard.sparkno = S705
sparkxy = 0,0
hitsound = 5,0
guardsound = 6,0
ground.type = Low
ground.slidetime = 9
ground.hittime = 12
ground.velocity = -5
air.velocity = -3,-4

[State 2000, End]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1

[StateDef 2001] ; Fireball y
type = S
movetype = A
physics = S
ctrl = 0
anim = 2000
velset = 0,0
juggle = 4

[State 2001, Proj]
type = Projectile
trigger1 = AnimElem = 5
; Projectile parameters ---------------
projID = 2000
projanim = 2005
projhitanim = 2006
velocity = 3,0
projhits = 2
projmisstime = 2
projpriority = 2
offset = 87,-66
; HitDef parameters -------------------
attr = S, SP
hitflag = MAF
guardflag = MA
animtype = Medium
damage = 60,6
pausetime = 5,5
sparkno = S701
guard.sparkno = S705
sparkxy = 0,0
hitsound = 5,1
guardsound = 6,0
ground.type = Low
ground.slidetime = 11
ground.hittime = 12
ground.velocity = -6
air.velocity = -3,-4

[State 2001, End]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1

[StateDef 2002] ; Fireball z
type = S
movetype = A
physics = S
ctrl = 0
anim = 2000
velset = 0,0
juggle = 5

[State 2002, Proj]
type = Projectile
trigger1 = AnimElem = 5
; Projectile parameters ---------------
projID = 2000
projanim = 2005
projhitanim = 2006
velocity = 3.5,0
projhits = 3
projmisstime = 2
projpriority = 3
offset = 87,-66
; HitDef parameters -------------------
attr = S, SP
hitflag = MAF
guardflag = MA
animtype = Hard
damage = 50,5
pausetime = 5,5
sparkno = S702
guard.sparkno = S705
sparkxy = 0,0
hitsound = 5,2
guardsound = 6,0
ground.type = Low
ground.slidetime = 13
ground.hittime = 12
ground.velocity = -7
air.velocity = -4,-5

[State 2002, End]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1
;------------------------------------------------
;--[LIGNE 181 : END]-----------------------------